import request from '@/utils/request'
/**
 * get list ?
 * @param params {*}
 */
export function _get (params) {
    return request({
        url: '/canPurchaseListGoods/getCanPurchaseListGoodsByPage',
        method: 'get',
        params: params
    })
}

// export function _getAll () {
//   return request({
//     url: '/canPurchaseList/getAllCanPurchaseList',
//     method: 'get'
//   })
// }
/**
 * get row ?
 * @param params {*}
 */
//  export function _find (params) {
//     return request({
//         url: '/canPurchaseList/getWarehouseByPage',
//         method: 'get',
//         params: params
//     })
// }

// 新增數據
export function _post (params) {
    return request({
        url: '/canPurchaseListGoods/addCanPurchaseListGoods',
        method: 'post',
        data: params
    })
}
// 修改數據
export function _put (id, params) {
    return request({
        url: '/canPurchaseListGoods/editCanPurchaseListGoods?idCanPurLisGoo=' + id,
        method: 'put',
        data: params
    })
}
// 刪除數據
// export function _delete (params) {
//     return request({
//         url: '/warehouse/addWarehouse',
//         method: 'delete',
//         params: params
//     })
// }
